<?php
class SortKeywords extends CWidget
{
	public function run(){
		$keywords = Yii::app()->params['hotkeywords'];	//默认排行是减肥
		$total = count($keywords);
		foreach($keywords as $key=>$keyword){
			echo CHtml::link($keyword,array('item/list','keyword'=>$keyword),array('target'=>'_blank'));
			if($key< $total-1){
				echo '、';
			}
		}
	}
}
?>
